#include "date.h"

void Test1()
{
	Date d1(2024, 3, 30);
	Date d2(2024, 3, 30);
	Date d3(2024, 3, 30);
	Date d4(2024, 3, 30);

	cout << "\"后置++\"：" << endl;
	Date ret1 = d1++;// 后置++
	ret1.Print();
	d1.Print();
	cout << endl;

	cout << "\"前置++\"：" << endl;
	Date ret2 = ++d2;// 前置++
	ret2.Print();
	d2.Print();
	cout << endl;

	cout << "\"后置--\"：" << endl;
	Date ret3 = d3--;// 后置--
	ret3.Print();
	d3.Print();
	cout << endl;

	cout << "\"前置--\"：" << endl;
	Date ret4 = d4++;// 前置--
	ret4.Print();
	d4.Print();
}

void TestIOs()
{
	Date d1;
	cin >> d1;
	cout << d1;
}


int main()
{
	Test1();
	//TestIOs();
	return 0;
}
